import request from "@/utils/request";
// 调用权限
export default {
  getList(data) {
    return request({
      url: "/api/huiyi/room/",
      method: "get",
      params: data
    });
  },
  toAdd(data) {
    return request({
      url: "/api/huiyi/room/",
      method: "post",
      data
    });
  },
  toDelete(id) {
    return request({
      url: "/api/huiyi/room/" + id + "/",
      method: "delete"
    });
  },
  toEdit(id, data) {
    return request({
      url: "/api/huiyi/room/" + id + "/",
      method: "put",
      data
    });
  },
  getMeetDepts(id, data) {
    return request({
      url: "/api/accounts/meet_depts/",
      method: "get",
      params: data
    });
  }

};
